package QL;

import java.util.Map;

public class ButlerRegisterWorldRequest implements IQLRequest
{
    /// 区服Id
    public long ZoneId;

    /// 内网IP地址
    public String PrivateIp;

    /// 服务器连接端口
    public long ServerPort;

    /// 控制端口
    public long ButlerPort;

    @Override
    public String GetApiName()
    {
        return "butler.register.world";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("private_ip", PrivateIp);
        map.put("server_port", String.valueOf(ServerPort));
        map.put("butler_port", String.valueOf(ButlerPort));
    }
}
